package io.gitee.yth.design.pattern.test.core.pattern.structural.composite.code;

/**
 * @author yth
 * @since 2023-04-26-21:26
 */
public abstract class Organization {

    protected String name;
    protected String description;

    abstract public void printAll();

    protected void add(Organization organization) {
        throw new UnsupportedOperationException();
    }

    protected void remove(Organization organization) {
        throw new UnsupportedOperationException();
    }

    protected Organization getChild(int i) {
        throw new UnsupportedOperationException();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
